package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-07-12 15:55:12.607
 */
@Entity
@Table(name = "WF_NODE",catalog = "wfdb")
public class WfNode implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF_NODE";

    /**流程节点编号 */
	public static final String ALIAS_NODE_ID = "NODE_ID";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**节点名称 */
	public static final String ALIAS_NODE_NAME = "NODE_NAME";
    /**节点类型: START 开始节点；END 结束节点；MANUAL 人工节点; AUTO 自动节点; JUDGE 判断节点; CONDITION 条件节点; AND 聚合节点 */
	public static final String ALIAS_NODE_TYPE = "NODE_TYPE";
    /**处理人编号 */
	public static final String ALIAS_UID = "UID";
    /**处理人角色 */
	public static final String ALIAS_ROLE_ID = "ROLE_ID";
    /**处理人组织编号；精准匹配 */
	public static final String ALIAS_ORG_ID = "ORG_ID";
    /**处理人组织编码；向下模糊匹配，支持当前以及下级组织 */
	public static final String ALIAS_ORG_CODE = "ORG_CODE";
    /**处理时限,单位分钟 */
	public static final String ALIAS_TIME_LIMIT = "TIME_LIMIT";
    /**节点表达式 */
	public static final String ALIAS_NODE_EXP = "NODE_EXP";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
    /**冗余字段，关联node_rel */
	public static final String ALIAS_REL_EXP = "REL_EXP";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "NODE_ID", unique = true, nullable = false)
    public java.lang.Long nodeId;
  
 	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "NODE_NAME")
    public java.lang.String nodeName;
  
 	@Column(name = "NODE_TYPE")
    public java.lang.String nodeType;
  
 	@Column(name = "UID")
    public java.lang.String uid;
  
 	@Column(name = "ROLE_ID")
    public java.lang.Long roleId;
  
 	@Column(name = "ORG_ID")
    public java.lang.String orgId;
  
 	@Column(name = "ORG_CODE")
    public java.lang.String orgCode;
  
 	@Column(name = "TIME_LIMIT")
    public java.lang.Long timeLimit;
  
 	@Column(name = "NODE_EXP")
    public java.lang.String nodeExp;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  
 	@Column(name = "REL_EXP")
    public java.lang.String relExp;
  





	public java.lang.Long getNodeId() {
		return this.nodeId;
	}
	
	public void setNodeId(java.lang.Long value) {
		this.nodeId = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getNodeName() {
		return this.nodeName;
	}
	
	public void setNodeName(java.lang.String value) {
		this.nodeName = value;
	}

	public java.lang.String getNodeType() {
		return this.nodeType;
	}
	
	public void setNodeType(java.lang.String value) {
		this.nodeType = value;
	}

	public java.lang.String getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.String value) {
		this.uid = value;
	}

	public java.lang.Long getRoleId() {
		return this.roleId;
	}
	
	public void setRoleId(java.lang.Long value) {
		this.roleId = value;
	}

	public java.lang.String getOrgId() {
		return this.orgId;
	}
	
	public void setOrgId(java.lang.String value) {
		this.orgId = value;
	}

	public java.lang.String getOrgCode() {
		return this.orgCode;
	}
	
	public void setOrgCode(java.lang.String value) {
		this.orgCode = value;
	}

	public java.lang.Long getTimeLimit() {
		return this.timeLimit;
	}
	
	public void setTimeLimit(java.lang.Long value) {
		this.timeLimit = value;
	}

	public java.lang.String getNodeExp() {
		return this.nodeExp;
	}
	
	public void setNodeExp(java.lang.String value) {
		this.nodeExp = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.lang.String getRelExp() {
		return this.relExp;
	}
	
	public void setRelExp(java.lang.String value) {
		this.relExp = value;
	}


	
	public WfNode() {
	}
	
	public WfNode(boolean qryflag) {
	    if(qryflag){
	    		this.nodeId = null;
				this.flowId = null;
				this.nodeName = null;
				this.nodeType = null;
				this.uid = null;
				this.roleId = null;
				this.orgId = null;
				this.orgCode = null;
				this.timeLimit = null;
				this.nodeExp = null;
				this.createTime = null;
				this.relExp = null;
			    }
	}


	public WfNode(
	    java.lang.Long inNodeId,
	    java.lang.Long inFlowId,
	    java.lang.String inNodeName,
	    java.lang.String inNodeType,
	    java.lang.String inUid,
	    java.lang.Long inRoleId,
	    java.lang.String inOrgId,
	    java.lang.String inOrgCode,
	    java.lang.Long inTimeLimit,
	    java.lang.String inNodeExp,
	    java.util.Date inCreateTime,
		java.lang.String inRelExp
	 ) {
		super();
				this.nodeId = inNodeId;
				this.flowId = inFlowId;
				this.nodeName = inNodeName;
				this.nodeType = inNodeType;
				this.uid = inUid;
				this.roleId = inRoleId;
				this.orgId = inOrgId;
				this.orgCode = inOrgCode;
				this.timeLimit = inTimeLimit;
				this.nodeExp = inNodeExp;
				this.createTime = inCreateTime;
				this.relExp = inRelExp;
			}





}

